package com.example.bankingsystemandroid.task;

import java.util.ArrayList;

import com.csc.bankingsystem.core.dto.AccountInfoDTO;

public class InfoHolder {
	public static final String PREFS_NAME = "com.example.bankingsystemanroid.prefs";
	private static String sessionId = "";
	private static String token = "";
	private static String username = "";
	private static String password = "";
	private static ArrayList<AccountInfoDTO> accountInfoList;

	public static String getSessionId() {
		return sessionId;
	}

	public static void setSessionId(String sessionId) {
		InfoHolder.sessionId = sessionId;
	}

	public static String getToken() {
		return token;
	}

	public static void setToken(String token) {
		InfoHolder.token = token;
	}

	public static String getUsername() {
		return username;
	}

	public static void setUsername(String username) {
		InfoHolder.username = username;
	}

	public static String getPassword() {
		return password;
	}

	public static void setPassword(String password) {
		InfoHolder.password = password;
	}

	public static void clearInfo() {
		sessionId = "";
		token = "";
		username = "";
		password = "";
	}

	public static ArrayList<AccountInfoDTO> getAccountInfoList() {
		return accountInfoList;
	}

	public static void setAccountInfoList(
			ArrayList<AccountInfoDTO> accountInfoList) {
		InfoHolder.accountInfoList = accountInfoList;
	}
}
